//根据不同的环境更改不同的baseUrl
let baseUrl = "https://android-back-test.huibenxia.com/"
// if (process.env.NODE_ENV == 'development') {
//     baseUrl = "https://android.huibenxia.com/"
// } else if (process.env.NODE_ENV == 'production') {
//     baseUrl = "https://android-back.huibenxia.com/"
// }
const api = {
    //获取用户数据
    "loadInitData": "home/load-init-data.do",
    //保存用户数据
    "saveUserDate": "user/data/save.do",
    //绘本列表
    "picbookList": "home/load-init-data.do",
    // 绘本
    "picbook": "picbook/load-init-data.do",
    // 社区绘本列表
    "recPicbookList": "world/list-picbooks.do",
    //上传绘本
    "addPicbook": "world/add-picbook.do",
    //更新绘本
    "updatePicbook": "world/update-picbook.do",
    //上传评分
    "addScore": "picbook/score.do",
    // 所有角色
    "allRoles": "role/list.do",
    // 用户阅读时间
    "readTime": "picbook/load-read-result.do",
    // 上传阅读时间
    "addPicbookTime": "picbook/read.do",
    //上传创作时间
    "addProduceTime": "world/read.do",
    // 用户创作操作 点赞数 时间 创作数
    "myOperationRecord": "world/load-my-operation-record.do",
    // 点赞
    "collect": "world/collect-picbook.do",
    // 用户角色对象
    "rolesOperations": "personal-center/list-operations.do",
    // 用户操作角色对象
    "addRolesOperation": "personal-center/add-operation.do",
    //用户行为数据收集
    //进入我的创作
    "enterProduce": "evaluation/action/creation-enter.do",
    //我的创作操作结果
    "creationMyworld": "evaluation/action/creation-operate.do",
    //进入社区
    "enterCommunity": "evaluation/action/community-enter.do",
    //进入个人中心
    "enterPersonal": "evaluation/action/personal-enter.do",
    //发送验证码
    "sendCaptcha": "user/captcha/send.do",
    //核对验证码
    "checkCaptcha": "user/bind/bind-phone-number.do",
    //更新用户信息
    "saveDetail": "user/bind/save-detail.do",
    //上传魔术老虎音频 回答问题
    "magicTigerAnswer": "picbook/question/answer.do",
    //用户功能使用情况
    "userUsage": "user/usage/add.do",
    //活动兑换码使用
    "exchange": "app/exchange/exchange.do",
    //首充奖励领取
    "firstAward": "user/award/accept-first-pay-award.do",
    //魔术老虎领取
    "tiggerAward": "user/award/accept-daily-award.do",
    //魔术老虎领书
    "tiggerPresent": "user/present/save-magic-tiger-present.do",
    //魔术老虎首次进入奖励领取
    "tiggerAwardFirst": "user/award/accept-magic-tiger-award.do",
    //收集蓝狐狸
    "blueFoxCollect": 'picbook/blue-fox/collect.do',
    //韵律绘本完成用户记录时间戳
    "poemSaveRecord": "picbook/poem/save-value.do",
    //判断音频中的文本，是否包含指定文本
    "audioWithText": "nls/is-audio-with-text.do",
    //保存任务完成结果
    "addAnswer": "estimate/add-answer.do",
    //语音合成
    "parseTextAudio": "nls/parse-text-to-audio.do",
    //进入评测
    "showMstery": "estimate/show-mastery.do",
    //加载评测结果
    "loadMastery": "estimate/load-mastery.do",
    //种子用户信息
    "seedActivity": "activity/seed/use-invite-code.do",
    //获取小程序  device_uid
    "getDeviceUuid": "weixin/parse-code-to-device-uuid.do",
}
for (let key in api) { api[key] = baseUrl + api[key] }
export {
    baseUrl,
    api
}
